<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.5"/>
<title>usbps: Examples</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
  $(window).load(resizeHeight);
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="HTML_custom.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="xlogo_bg.png"/></td>
  <td style="padding-left: 0.5em;">
   <div id="projectname">usbps
   </div>
   <div id="projectbrief">Vitis Drivers API Documentation</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.5 -->
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Overview</span></a></li>
      <li><a href="annotated.html"><span>Data&#160;Structures</span></a></li>
      <li><a href="globals.html"><span>APIs</span></a></li>
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li class="current"><a href="pages.html"><span>Examples</span></a></li>
    </ul>
  </div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('example.html','');});
</script>
<div id="doc-content">
<div class="header">
  <div class="headertitle">
<div class="title">Examples </div>  </div>
</div><!--header-->
<div class="contents">
<div class="textblock"><p>You can refer to the below stated example applications for more details on how to use usbps driver.</p>
<h1><a class="anchor" id="ex1"></a>
xusbps_ch9.c</h1>
<p>Contains an example on how to use the XUsbps driver directly. This example contains the implementation of the chapter 9 code.</p>
<p>For details, see <a class="el" href="xusbps__ch9_8c.html" title="This file contains the implementation of the chapter 9 code for the example. ">xusbps_ch9.c</a>.</p>
<h1><a class="anchor" id="ex2"></a>
xusbps_ch9.h</h1>
<p>This headerfile contains definitions used in the chapter 9 code.</p>
<p>For details, see <a class="el" href="xusbps__ch9_8h.html" title="This file contains definitions used in the chapter 9 code. ">xusbps_ch9.h</a>.</p>
<h1><a class="anchor" id="ex3"></a>
xusbps_ch9_storage.c</h1>
<p>Contains an example on how to use the XUsbps driver directly. This example contains the implementation of the storage specific chapter 9 code.</p>
<p>For details, see <a class="el" href="xusbps__ch9__storage_8c.html" title="This file contains the implementation of the storage specific chapter 9 code for the example...">xusbps_ch9_storage.c</a>.</p>
<h1><a class="anchor" id="ex4"></a>
xusbps_ch9_storage.h</h1>
<p>This headerfile contains definitions used in the chapter 9 code.</p>
<p>For details, see <a class="el" href="xusbps__ch9__storage_8h.html" title="This file contains definitions used in the chapter 9 code. ">xusbps_ch9_storage.h</a>.</p>
<h1><a class="anchor" id="ex5"></a>
xusbps_class_storage.c</h1>
<p>Contains an example on how to use the XUsbps driver directly. This example contains the contains the implementation of the storage class code.</p>
<p>For details, see <a class="el" href="xusbps__class__storage_8c.html" title="This file contains the implementation of the storage class code for the example. ">xusbps_class_storage.c</a>.</p>
<h1><a class="anchor" id="ex6"></a>
xusbps_class_storage.h</h1>
<p>This headerfile contains definitions used in the chapter 9 code.</p>
<p>For details, see <a class="el" href="xusbps__class__storage_8h.html" title="This file contains definitions used in the chapter 9 code. ">xusbps_class_storage.h</a>.</p>
<h1><a class="anchor" id="ex7"></a>
xusbps_intr_example.c</h1>
<p>Contains an example on how to use the XUsbps driver directly. This example shows the usage of the USB driver with the USB controller in DEVICE mode.</p>
<p>For details, see <a class="el" href="xusbps__intr__example_8c.html" title="This file contains an example of how to use the USB driver with the USB controller in DEVICE mode...">xusbps_intr_example.c</a>.</p>
<h1><a class="anchor" id="ex8"></a>
xusb_ch9_audio.c</h1>
<p>This is the USB Audio example which contains USB Audio Class related Chapter 9 functions.</p>
<p>For details, see <a class="el" href="xusbps__ch9__audio_8c.html" title="This file contains the implementation of chapter 9 specific code for the example. ...">xusbps_ch9_audio.c</a>.</p>
<h1><a class="anchor" id="ex9"></a>
xusbps_ch9_audio.h</h1>
<p>This headerfile contains the constants, type definitions, variables and function prototypes used in the USB Audio Class related Chapter 9 code.</p>
<p>For details, see <a class="el" href="xusbps__ch9__audio_8h.html" title="This file contains the implementation of chapter 9 specific code for the example. ...">xusbps_ch9_audio.h</a>.</p>
<h1><a class="anchor" id="ex10"></a>
xusbps_class_audio.c</h1>
<p>Contains an example on how to use the Usb driver directly. This is the USB Audio example which contains USB Audio Class related functions.</p>
<p>For details, see <a class="el" href="xusbps__class__audio_8c.html" title="This file contains the implementation of chapter 9 specific code for the example. ...">xusbps_class_audio.c</a>.</p>
<h1><a class="anchor" id="ex11"></a>
xusbps_class_audio.h</h1>
<p>This headerfile contains the constants, type definitions, variables and function prototypes used in the USB Audio Class related code.</p>
<p>For details, see <a class="el" href="xusbps__class__audio_8h.html" title="This file contains the implementation of chapter 9 specific code for the example. ...">xusbps_class_audio.h</a>.</p>
<h1><a class="anchor" id="ex12"></a>
xusbps_audio_example.c</h1>
<p>This example contains Audio device application which provides a reference to create a new Isochronous Transfer related application.</p>
<ul>
<li>For Audio example, UAC2 is selected by default. The constant UAC1 has to be defined to use Audio Class 1.0 device. If UAC1 is defined, the constant MICROPHONE is used to select Microphone device. Undefine MICROPHONE for UAC1 Speaker configuration. By default Microphone Specification is selected.</li>
<li>For Audio example, if UAC2 specification is selected, device will playback the data which is provided to it from host. Use following commands to play/record audio: Find alsa hardware info using "aplay/arecord -l". Play: "aplay -D hw:X,X &lt;44100Hz_STERIO_FILE&gt;.wav" Record: "arecord -D hw:X,X -f S16_LE -r 44100 -c 2 &lt;OUTPUT_FILE&gt;.wav" If UAC1 Microphone specification is selected, device will playback the dummy data from data.h file. Use following command to record audio: "arecord -D hw:X,X -f S16_LE -r 8000 -c 1 &lt;OUTPUT_FILE&gt;.wav" If Speaker specification is selected then use following command to play the audio: "aplay -D hw:X,X &lt;8000Hz_MONO_FILE&gt;.wav"</li>
</ul>
<p>For details, see <a class="el" href="xusbps__audio__example_8c.html" title="This file contains the implementation of chapter 9 specific code for the example. ...">xusbps_audio_example.c</a>.</p>
<h1><a class="anchor" id="ex13"></a>
xusbps_audiodata.h</h1>
<p>This headerfile contains the dummy audio data which is to be transfered to host when UAC1 Microphone specification is selected in USB Audio example.</p>
<p>For details, see <a class="el" href="xusbps__audiodata_8h.html" title="This file contains the implementation of chapter 9 specific code for the example. ...">xusbps_audiodata.h</a>. </p>
</div></div><!-- contents -->
</div><!-- doc-content -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
	<p class="footer">&copy; Copyright 2015-2022 Xilinx, Inc. All Rights Reserved.</p>
	<p class="footer">&copy; Copyright 2022-2023 Advanced Micro Devices, Inc. All Rights Reserved.</p>
</div>
</body>
</html>
